package com.hz.house.config;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * <p> http client 配置
 * @author lfw
 */
@Configuration
public class HttpTemplateConfig {

	
	@Bean
	public RestTemplate restTemplate() {
		return new RestTemplate();
		
	}
	
	
	@Bean
	@LoadBalanced  //使用ribon调用接口
	public RestTemplate ribonTemplate() { 
		return new RestTemplate();
		
	}
	
}
